const proxy = require('http-proxy-middleware')
module.exports = function (app){
    app.use(proxy('/zs',{
        target:　'http://api.zhuishushenqi.com',
        changeOrigin:true,
        pathRewrite:　{
            "^/zs": ""
        }
    }))
    app.use(proxy('/cp',{
        target: 'http://chapterup.zhuishushenqi.com',
        changeOrigin: true,
        pathRewrite: {
            "^/cp": ""
        }
    }))
}